/**
 *
 */
package com.storm.lib.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.Logger;

/**
 * 类功能: Task基类
 * @author johnny
 * @version 2010-11-25
 */
public abstract class BaseTask extends BaseThread{

	protected final Logger logger = Logger.getLogger(getClass());

	/**
	 * 第一次延时
	 */
	private long firstDelayMS=1000;
	/**
	 * 重复延时
	 */
	private long repeatDelayMS=1000;
	/**
	 * 任务组
	 */
	private int taskGroup;
	/**
	 * @return the repeatDelayMS
	 */
	public long getRepeatDelayMS() {
		return repeatDelayMS;
	}
	/**
	 * @param repeatDelayMS the repeatDelayMS to set
	 */
	public void setRepeatDelayMS(long repeatDelayMS) {
		this.repeatDelayMS = repeatDelayMS;
	}
	/**
	 * @return the taskGroup
	 */
	public int getTaskGroup() {
		return taskGroup;
	}
	/**
	 * @param taskGroup the taskGroup to set
	 */
	public void setTaskGroup(int taskGroup) {
		this.taskGroup = taskGroup;
	}

	/**
	 * 运行方法需要实现
	 */
	public abstract void run();
	/**
	 * @return the firstDelayMS
	 */
	public long getFirstDelayMS() {
		return firstDelayMS;
	}
	/**
	 * @param firstDelayMS the firstDelayMS to set
	 */
	public void setFirstDelayMS(long firstDelayMS) {
		this.firstDelayMS = firstDelayMS;
	}





}
